import request from '@/utils/request'

// 查询检查阶段任务列表
export function listChecktask(query) {
  return request({
    url: '/teaching/checktask/list',
    method: 'get',
    params: query
  })
}

// 查询检查阶段任务详细
export function getChecktask(id) {
  return request({
    url: '/teaching/checktask/' + id,
    method: 'get'
  })
}

// 新增检查阶段任务
export function addChecktask(data) {
  return request({
    url: '/teaching/checktask',
    method: 'post',
    data: data
  })
}

// 修改检查阶段任务
export function updateChecktask(data) {
  return request({
    url: '/teaching/checktask',
    method: 'put',
    data: data
  })
}

// 删除检查阶段任务
export function delChecktask(id) {
  return request({
    url: '/teaching/checktask/' + id,
    method: 'delete'
  })
}
